SET(LIBDPKG_SRC
	libdpkg.c
	create.c
	install.c
)

ADD_LIBRARY(dpkg SHARED ${LIBDPKG_SRC})
TARGET_LINK_LIBRARIES(dpkg -ldcore -ldhash -ltar -lbz2)
INCLUDE_DIRECTORIES(../include /usr/include/dNux)

INSTALL(TARGETS
		dpkg
	LIBRARY DESTINATION
		${DESTDIR}/usr/lib
	LIBRARY PERMISSIONS
		OWNER_READ OWNER_WRITE
		WORLD_READ
)

